package com.dhsc.local.dao.impl.wskh;

import com.dhsc.domain.ywzx.wskh.WskhShjdVo;
import com.dhsc.local.dao.wskh.IWskhShjdDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName WskhShjdDaoImpl
 * @description: 网上开户权限配置
 * @author: gx
 * @create: 2024-10-09 16:43:48
 **/
@Repository("wskhshjddao")
public class WskhShjdDaoImpl implements IWskhShjdDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<WskhShjdVo> queryWskhShjd(WskhShjdVo wskhShjdVo) {
        return localSqlSessionTemplate.selectList("WskhShjdMapper.queryWskhShjd", wskhShjdVo);
    }

    @Override
    public int insertWskhShjd(WskhShjdVo wskhShjdVo) {
        return localSqlSessionTemplate.insert("WskhShjdMapper.insertWskhShjd", wskhShjdVo);
    }

    @Override
    public int updateWskhShjd(WskhShjdVo wskhShjdVo) {
        return localSqlSessionTemplate.update("WskhShjdMapper.updateWskhShjd", wskhShjdVo);
    }

    @Override
    public int deleteWskhShjd(WskhShjdVo wskhShjdVo) {
        return localSqlSessionTemplate.delete("WskhShjdMapper.deleteWskhShjd", wskhShjdVo);
    }

    @Override
    public List<WskhShjdVo> queryWskhShjdYhxx() {
        return localSqlSessionTemplate.selectList("WskhShjdMapper.queryWskhShjdYhxx");
    }
}
